package com.liangsui.mss.utils;

import cn.hutool.core.date.DateUtil;

/**
 * HisDateUtils
 *
 * @author zhangjiawei
 * @email 1533167396@qq.com
 * @date 2022/12/8 11:28
 */
public class HisDateUtils {
    /**
     * @Description: 得到时段
     * 1上午
     * 2下午
     * 3晚上
     * @Return: String
     * @Author: campsis-tk
     * @Exception:
     * @Date: 2020/9/15
     */
    public static String getCurrentTimeType() {
        int hour = DateUtil.hour(DateUtil.date(), true);
        if (hour >= 8 && hour < 12) {
            return "1";
        } else if (hour >= 12 && hour < 18) {
            return "2";
        } else {
            return "3";
        }
    }
}
